﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserScore.aspx.cs" Inherits="OnLineExam.Web.mag.old.UserScore" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:UpdatePanel ID="updatePanel" runat="server">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td valign="top" align="center" width="750px">
                                <h4 style="font-family: 楷体_GB2312">>>成绩管理</h4>
                                <hr />
                                请选择试卷：<asp:DropDownList ID="DropDownList1" runat="server"
                                    DataTextField="PaperID" DataValueField="PaperName" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                                    AutoPostBack="True">
                                </asp:DropDownList>
                                <%--<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OnLineExamConnectionString %>"
                            SelectCommand="SELECT DISTINCT [PaperID] FROM [Score]"></asp:SqlDataSource>--%>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label12" runat="server" ForeColor="Red"></asp:Label>
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="12" AutoGenerateColumns="False"
                                    DataKeyNames="ID" CellPadding="4" Font-Size="13px" Width="100%" OnRowDeleting="GridView1_RowDeleting"
                                    ForeColor="#333333" GridLines="None" OnRowDataBound="GridView1_RowDataBound">
                                    <RowStyle ForeColor="#333333" BackColor="#F7F6F3" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkSelected" runat="server" Checked="False" Visible="True" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="用户编号">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUserID" Text='<%# Eval("UserID") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="用户姓名">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUserName" Text='<%# Eval("UserName") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="试卷编号">
                                            <ItemTemplate>
                                                <asp:Label ID="Label11" Text='<%# Eval("PaperID") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="成绩">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" Text='<%# Eval("UserScore") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="考试时间">
                                            <ItemTemplate>
                                                <asp:Label ID="Label5" Text='<%# Eval("ExamTime") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="评卷时间">
                                            <ItemTemplate>
                                                <asp:Label ID="Label6" Text='<%# Eval("JudgeTime") %>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Wrap="False"></HeaderStyle>
                                        </asp:TemplateField>
                                        <%-- <asp:CommandField DeleteText="&lt;div onclick=&quot;return confirm('确定要删除吗？')&quot;&gt;删除&lt;/div&gt;"
                                    ShowDeleteButton="True" HeaderText="删除"></asp:CommandField>--%>
                                    </Columns>
                                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                                <br />
                                <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="true" GroupName="radio"
                                    OnCheckedChanged="RadioButton1_CheckedChanged" Text="全选" Width="54px" /><asp:RadioButton
                                        ID="RadioButton2" runat="server" AutoPostBack="true" GroupName="radio" OnCheckedChanged="RadioButton2_CheckedChanged"
                                        Text="反选" Width="54px" />
                                <asp:Button ID="Button1" runat="server" Text="删除"
                                    OnClientClick="return del();"
                                    OnClick="Button1_Click" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="/Images/Excel.GIF" OnClick="ImageButton2_Click" />
        </div>
    </form>

    <script>
        function del() {
            if (confirm("确认删除吗")) {
                return true;
            }
            else {
                
                return false;
            }
        }
    </script>
</body>
</html>
